Some configuration is needed in the web.config to run WebFileUploader in IIS6.
In this topic, you will learn how to configure web.config.
To configure WebFileUploader for IIS 6 application
- By default, ASP.NET application restricts maximum request length to 4MB. To enable your application to accept larger files, please configure the maxRequestLength in web.config to higher value. The maxRequestLength value is measured in kilobytes. Here is a snippet to increase your file size to 100MB:
<configuration> <system.web> <httpRuntime maxRequestLength="102400" /> </system.web> </configuration> - Add WebFileUploader handler to <httpHandlers> section in your project web.config. Here is the snippet:
<add verb="GET" path="WebFileUploaderHttpHandler.axd" validate="false" type="ISNet.WebUI.WebTextEditor.WebFileUploaderHttpHandler, ISNet.WebUI.WebTextEditor" />
- Add WebFileUploader module to <httpModules> section in your project web.config. Here is the snippet:
<add name="WebFileUploaderHttpModule" type="ISNet.WebUI.WebTextEditor.WebFileUploaderHttpModule, ISNet.WebUI.WebTextEditor" />